#include <stdio.h>
#include <iostream>

#if defined(WIN32)
#include <conio.h>
#else
#include "../common/conio.h"
#endif

#include "GLDriver/GLDriver.h"
#include "MyGLApp/MyGLApp.h"

/*=================================================================
| Fcn:		Main
| Desc:		Application entry point, and what creates and runs
|			the GL Driver.
=================================================================*/
int main(void)
{
	using namespace mp_myApp;
	//Press any key to run.
	printf("Mitchell's OpenGL Application Test\n");
	//system("PAUSE");
	printf("\nPress Escape anytime to exit\n");
	//Free the console before starting the application
	//FreeConsole();
	//Create a driver object for the application
	GLDriver* driver  = new GLDriver(new MyGLApp());
	//Run the driver and capture the exit results
	int results = driver->Run();
	//Destruct the driver
	delete driver;
	//Return the run exit results
	std::system("PAUSE");
	return results;
}
